package com.pactera.asmp.server.service;

import com.pactera.asmp.server.common.constants.Result;

/**
 * @ProjectName: tlsserver
 * @Package com.pactera.asmp.server.service
 * @ClassName: ITokenService
 * @Description: Token业务API
 * @Date 2020/06/02 10:19
 * @Author lvzhiqiang
 * @Version 1.0
 */
public interface ITokenService {

    /**
     * createToken
     *
     * @param uuid
     * @param channelId
     * @return
     */
    String createToken(String uuid, String roleId, int channelId);

    /**
     * refreshToken
     *
     * @param oldToken
     * @param channelId
     * @return
     */
    Result refreshToken(String oldToken, int channelId);
}
